export interface IMenu {
  isExpand: boolean;
  menuId: string;
  menuName: string;
  parentName: string | null;
  parentId: string;
  orderNum: number;
  path: string;
  component: string;
  isFrame: 1 | 0;
  isCache: string;
  menuType: "M" | "F" | "C";
  visible: string;
  status: string;
  perms: string;
  icon: string;
  createBy: string;
  createTime: string;
  updateBy: string;
  updateTime: string;
  remark: string;
  params: Record<string, unknown>;
  children: IMenu[];
  meta: any;
}

interface Meta {
  title: string;
  icon: string;
  noCache: boolean;
  link: null | string;
}
export interface RouterMenu {
  name: string;
  path: string;
  hidden: boolean;
  redirect?: string;
  component: string;
  alwaysShow?: boolean;
  meta: Meta;
  isExpand?: boolean;
  title?: string;
  id: string;
  children?: RouterMenu[];
}
